# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=yad
pkgver=14.1
pkgrel=0
pkgdesc="Fork of zenity - display graphical dialogs from shell scripts or command line"
url="https://sourceforge.net/projects/yad-dialog/"
arch="all"
license="GPL-3.0-or-later"
depends="hicolor-icon-theme"
makedepends="gtk+3.0-dev webkit2gtk-4.1-dev intltool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://github.com/v1cont/yad/releases/download/v$pkgver/yad-$pkgver.tar.xz"

build() {
	./configure \
		--prefix=/usr \
		--enable-icon-browser \
		--enable-html
	make
}

check() {
	echo "src/util.c" >> po/POTFILES.in
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c2949846d9d6c34bc0c8f482a5b30fb978865308bcafe656694d8eb1bb903e9af76f9d3cdd748ecb0dac389e1a0204a15b10ab29b99262cdeffc44ed16ce902e  yad-14.1.tar.xz
"
